jsPlumbUtil

A set of helper methods for use by jsPlumb.

new jsPlumbUtil()

Source:
  • util-api.js, line 1

Classes

EventGenerator

Methods

<static> isArray()

Returns whether the given object is an Array.

Source:
  • util-api.js, line 3

<static> isBoolean()

Returns whether the given object is a Boolean.

Source:
  • util-api.js, line 7

<static> isDate()

Returns whether the given object is a Date.

Source:
  • util-api.js, line 12

<static> isEmpty()

Returns whether the given object (an Object or Array) is empty.

Source:
  • util-api.js, line 14

<static> isFunction()

Returns whether the given object is a Function.

Source:
  • util-api.js, line 13

<static> isNull()

Returns whether the given object is null.

Source:
  • util-api.js, line 9

<static> isNumber()

Returns whether the given object is a Number.

Source:
  • util-api.js, line 15

<static> isObject()

Returns whether the given object is an Object.

Source:
  • util-api.js, line 11

<static> isString()

Returns whether the given object is a String.

Source:
  • util-api.js, line 5

<static> perpendicularLineTo(fromPoint, toPoint, length)

calculates a perpendicular to the line fromPoint->toPoint, that passes through toPoint and is 'length' long.

Parameters:
Name Type Description
fromPoint
toPoint
length
Source:
  • util-api.js, line 17